package me.haoliang.implicitScala

/**
  * Created by planck on 2017/10/10.
  */

class ImplicitExtend extends Father  {
  override implicit val content = "is class"
}

object ImplicitExtend extends Father{
  override implicit val content = "is object"
}

class Father {
  implicit val content = "it is father class"
}

object Father{
  implicit val content = "it is father object"

}


object ImplicitsAdvanced {
  def main(args: Array[String]): Unit = {
    def printContent(implicit content: String) = println(content)
    import ImplicitExtend._

    //implicit val content = "I love scala"
    printContent
  }
}